/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.travelFinder.domain.utils;

import org.springframework.core.convert.converter.Converter;

/**
 *
 * @author Kryl
 */
public class Converters {
    
    static public class WeekdaysToBooleanArray implements Converter<Weekdays, Boolean[]>{

        @Override
        public Boolean[] convert(Weekdays s) {
            
                    
            return s.days;
        }
        
    }
    static public class BooleanArrayToWeekdays implements Converter<Boolean[],Weekdays>{

        @Override
        public Weekdays convert(Boolean[] s) {
            return new Weekdays(s);
        }        
    }
    
}
